package org.example.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author: User
 * @description:
 * @create: 2024-07-25 13:36
 */
@Data
public class UserOrder {
    private Integer id;
    private String orderNumber;
    private Integer userId;
    private String productName;
    private Double productPrice;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 用户名称
     */
    private String name;

    /**
     * 用户电话
     */
    private String phone;
}
